const app = getApp();
Page({
    data: {
      menuIdx: 0,
      type_name: ['店铺入驻', ' 开通同城卡', ' 信息发布', ' 店铺升级', ' 商品核销', ' 送礼物'],
    },
    onLoad: function(t) {
      var that =this
      var a = that.data.tabInfo
      app.ihttpGet('https://www.58zltc.com/api.php/Commission/getBonusOrder/openid/' + app.globalData.openid, function (res) {
        wx.hideLoading()
        that.setData({
          info: res.data
        })
      })
    },
    backto: function (e) {
      wx.navigateBack({})
    },
    changeTab: function (e) {
      this.setData({
        tabIdx: e.currentTarget.dataset.num
      })
    },
    changeMenu: function (e) {
      this.setData({
        menuIdx: e.currentTarget.dataset.num
      })
    }
});